package com.tanguy.user.ui.hotel.adapter

import android.graphics.Paint
import android.view.View
import android.widget.TextView
import com.tanguy.user.R
import com.tanguy.user.base.JustAdapter
import org.jetbrains.anko.find

/**
 * Created by dab on 2017/10/12 0012 17:26
 */
class HotelAdapter(data: ArrayList<Any>) : JustAdapter<Any>(data, R.layout.item_hotel_list) {
    override fun bind(itemView: View, data: Any, position: Int) {
        itemView.apply {
            val textView = find<TextView>(R.id.tv_old_price)
            textView.paint.flags = Paint.STRIKE_THRU_TEXT_FLAG; //中间横线
        }

    }




}